
function add() {
    let salaryId = $(".salaryId").val();
    let sname = $(".sname").val();
    let designer = $(".designer").val();
    let register = $(".register").val();
    let registrationTime = $(".registrationTime").val();
    let base = $(".base").val();
    let bonus = $(".bonus").val();
    let traffic = $(".traffic").val();
    let communication = $(".communication").val();
    let meal = $(".meal").val();
    let housing = $(".housing").val();
    let travel = $(".travel").val();
    let overtime = $(".overtime").val();

    let jsonA = {
        salaryId: salaryId,
        sname: sname,
        designer: designer,
        register: register,
        registrationTime: registrationTime,
        base: base,
        bonus: bonus,
        traffic: traffic,
        communication: communication,
        meal: meal,
        housing: housing,
        travel: travel,
        overtime: overtime,
    }

    $.post("/addSalaryStandard", jsonA, function (data) {
        if (data == true) {
            alert("添加成功！")
            window.location.href = "salaryStandard";
        } else {
            alert("添加失败！")
        }
    }, "json")
}